package com.ihighest.app.infox.tools;

import android.content.Context;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;

public abstract class MyCheckBoxListener implements OnCheckedChangeListener {
	private String name;
	private boolean ischeck;

	private Context cont;

	public MyCheckBoxListener() {
	}

	@Override
	public void onCheckedChanged(CompoundButton arg0, boolean arg1) {
		check(getName(name), arg1);
		// MyChexk.setCheck(name, arg1);
	}

	public abstract void check(String name, boolean check);

	public abstract String getName(String name);

	public void setName(String name) {
		this.name = name;
	}

	public void setContext(Context context) {
		this.cont = context;
	}
}
